package com.yidao.core.domain;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @author feng
 */
public class SearchCriteria {
	
	private String objectName;
	
	private List<String> columnNames = new ArrayList<String>();
	
	private List<SearchExpression> expressions = new ArrayList<SearchExpression>();
	
	public SearchCriteria() {
		super();
	}
	
	public void addExpression(SearchExpression expression){
		this.expressions.add(expression);
	}

	public List<String> getColumnNames() {
		return columnNames;
	}
	
	public List<SearchExpression> getExpressions() {
		return expressions;
	}

	public String getObjectName() {
		return objectName;
	}

	public void setColumnNames(List<String> columnNames) {
		this.columnNames = columnNames;
	}

	public void setExpressions(List<SearchExpression> expressions) {
		this.expressions = expressions;
	}

	public void setObjectName(String objectName) {
		this.objectName = objectName;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
